package cn.sirun.com.fca.personal.center.block.item.impl;

import com.tencent.cloud.iov.util.ObjectUtils;

import cn.sirun.com.fca.personal.center.block.item.ICarInfoItem;

public class CarInfoItem implements ICarInfoItem {
    private String mCarImageUrl = "";

    private String mVehicleType = "";

    private String mVehicleVin = "";

    public CarInfoItem() {
    }

    public CarInfoItem(String carImageUrl, String licensePlate, String vehicleNumber) {
        mCarImageUrl = carImageUrl;
        mVehicleType = licensePlate;
        mVehicleVin = vehicleNumber;
    }

    @Override
    public String getCarImageUrl() {
        return mCarImageUrl;
    }

    public void setCarImageUrl(String carImageUrl) {
        mCarImageUrl = carImageUrl;
    }

    @Override
    public String getVehicleType() {
        return mVehicleType;
    }

    public void setVehicleType(String vehicleType) {
        mVehicleType = vehicleType;
    }

    @Override
    public String getVehicleVin() {
        return mVehicleVin;
    }

    public void setVehicleNumber(String vehicleVin) {
        mVehicleVin = vehicleVin;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        CarInfoItem that = (CarInfoItem) o;
        return ObjectUtils.equals(mCarImageUrl, that.mCarImageUrl) &&
                ObjectUtils.equals(mVehicleType, that.mVehicleType) &&
                ObjectUtils.equals(mVehicleVin, that.mVehicleVin);
    }

    @Override
    public int hashCode() {
        return ObjectUtils.hash(mCarImageUrl, mVehicleType, mVehicleVin);
    }
}
